﻿import { defineStore } from 'pinia'

export const useDropDownStore = defineStore('dropdownStore', {
  state: () => {
    return {
      commandName: '',
      uid: 0,
    }
  },
  actions: {
    setCommandName(name: string) {
      this.commandName = name
    },
    setUid() {
      this.uid = Date.now()
      return this.uid
    }
  },
  getters: {
    getUid: (state) => {
      return state.uid
    }
  }
})